/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_clienteDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression cl_id_cliente;
	public final IntegerExpression cl_cod_cliente;
	public final StringExpression cl_nombre;
	public final StringExpression cl_direccion;
	public final StringExpression cl_ejecutivo;
	public final StringExpression cl_fono_ejecutivo;
	
	public Tbv_clienteDetachedCriteria() {
		super(orm.Tbv_cliente.class, orm.Tbv_clienteCriteria.class);
		cl_id_cliente = new IntegerExpression("cl_id_cliente", this.getDetachedCriteria());
		cl_cod_cliente = new IntegerExpression("cl_cod_cliente", this.getDetachedCriteria());
		cl_nombre = new StringExpression("cl_nombre", this.getDetachedCriteria());
		cl_direccion = new StringExpression("cl_direccion", this.getDetachedCriteria());
		cl_ejecutivo = new StringExpression("cl_ejecutivo", this.getDetachedCriteria());
		cl_fono_ejecutivo = new StringExpression("cl_fono_ejecutivo", this.getDetachedCriteria());
	}
	
	public Tbv_clienteDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_clienteCriteria.class);
		cl_id_cliente = new IntegerExpression("cl_id_cliente", this.getDetachedCriteria());
		cl_cod_cliente = new IntegerExpression("cl_cod_cliente", this.getDetachedCriteria());
		cl_nombre = new StringExpression("cl_nombre", this.getDetachedCriteria());
		cl_direccion = new StringExpression("cl_direccion", this.getDetachedCriteria());
		cl_ejecutivo = new StringExpression("cl_ejecutivo", this.getDetachedCriteria());
		cl_fono_ejecutivo = new StringExpression("cl_fono_ejecutivo", this.getDetachedCriteria());
	}
	
	public Tbv_maquinaDetachedCriteria createTbv_maquinaCriteria() {
		return new Tbv_maquinaDetachedCriteria(createCriteria("ORM_Tbv_maquina"));
	}
	
	public Tbv_cliente uniqueTbv_cliente(PersistentSession session) {
		return (Tbv_cliente) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_cliente[] listTbv_cliente(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_cliente[]) list.toArray(new Tbv_cliente[list.size()]);
	}
}

